import Qt 4.7
import "../colibri"
import "../js/FutuHeia.js" as FutuHeia

Item {
    width: screenWidth
    height: 120

    CLButton {
        id: postButton
        anchors {
            top: parent.top
            left: parent.left
            right: parent.right
            margins: 15
        }
        height: 50
        text: qsTr("Submit")
        onClicked: FutuHeia.postEntry();
        hoveredStateOn: false
        borderColor: appItem.heiaFocusColorOuter
        color: appItem.heiaFocusColorInner
        colorWhenPressed: appItem.heiaOrange
        gradientDefaultOn: false
        gradientPressedOn: false
        gradientSelectedOn: false
        textColor: "black"
        borderWidth: 4
    }

    CLButton {
        id: showPostsButton
        anchors {
            top: postButton.bottom
            left: parent.left
            right: parent.right
            margins: 15
        }
        height: 50
        text: appItem.postsButtonText
        onClicked: FutuHeia.showLog();
        hoveredStateOn: false
        borderColor: appItem.heiaFocusColorOuter
        color: appItem.heiaFocusColorInner
        colorWhenPressed: appItem.heiaOrange
        gradientDefaultOn: false
        gradientPressedOn: false
        gradientSelectedOn: false
        textColor: "black"
        borderWidth: 4
    }

}
